package com.px.plan.service.impl;

import com.px.plan.domain.PlanMark;
import com.px.plan.mapper.PlanMarkMapper;
import com.px.plan.service.IPlanMarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 预案区域Service业务层处理
 * 
 * @author WRJ
 * @date 2024-08
 */
@Service
public class PlanMarkServiceImpl implements IPlanMarkService 
{
    @Autowired
    private PlanMarkMapper planMarkMapper;

    /**
     * 查询预案区域
     * 
     * @param id 预案区域主键
     * @return 预案区域
     */
    @Override
    public PlanMark selectPlanMarkById(Long id)
    {
        return planMarkMapper.selectPlanMarkById(id);
    }

    /**
     * 查询预案区域列表
     * 
     * @param planMark 预案区域
     * @return 预案区域
     */
    @Override
    public List<PlanMark> selectPlanMarkList(PlanMark planMark)
    {
        return planMarkMapper.selectPlanMarkList(planMark);
    }

    /**
     * 新增预案区域
     * 
     * @param planMark 预案区域
     * @return 结果
     */
    @Override
    public int insertPlanMark(PlanMark planMark)
    {
        return planMarkMapper.insertPlanMark(planMark);
    }

    /**
     * 修改预案区域
     * 
     * @param planMark 预案区域
     * @return 结果
     */
    @Override
    public int updatePlanMark(PlanMark planMark)
    {
        return planMarkMapper.updatePlanMark(planMark);
    }

    /**
     * 批量删除预案区域
     * 
     * @param ids 需要删除的预案区域主键
     * @return 结果
     */
    @Override
    public int deletePlanMarkByIds(Long[] ids)
    {
        return planMarkMapper.deletePlanMarkByIds(ids);
    }

    /**
     * 删除预案区域信息
     * 
     * @param id 预案区域主键
     * @return 结果
     */
    @Override
    public int deletePlanMarkById(Long id)
    {
        return planMarkMapper.deletePlanMarkById(id);
    }
}
